[IA64] Fix VGA console
authorAlex Williamson <alex.williamson@hp.com>
Wed, 25 Jul 2007 19:09:27 +0000 (13:09 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Wed, 25 Jul 2007 19:09:27 +0000 (13:09 -0600)
VGA console support seems to have gotten broken somewhere along the
way.  On current bits, console=vga doesn't seem to do anything.  This
patch adds the necessary console info to get it working again.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
xen/arch/ia64/xen/xensetup.c

index 243eb17f545b91b284e59ccb2d909002d7c4049c..882b010fbd633c1b1eb6d18cde1c4f365d98ce6c 100644 (file)
@@ -18,6 +18,7 @@
 #include <xen/serial.h>
 #include <xen/trace.h>
 #include <xen/keyhandler.h>
+#include <xen/vga.h>
 #include <asm/meminit.h>
 #include <asm/page.h>
 #include <asm/setup.h>
@@ -311,6 +312,20 @@ void __init start_kernel(void)
     }
     serial_init_preirq();
 
+#ifdef CONFIG_VGA
+    /* Plug in a default VGA mode */
+    vga_console_info.video_type = XEN_VGATYPE_TEXT_MODE_3;
+    vga_console_info.u.text_mode_3.font_height = 16; /* generic VGA? */
+    vga_console_info.u.text_mode_3.cursor_x =
+                                        ia64_boot_param->console_info.orig_x;
+    vga_console_info.u.text_mode_3.cursor_y =
+                                        ia64_boot_param->console_info.orig_y;
+    vga_console_info.u.text_mode_3.rows =
+                                        ia64_boot_param->console_info.num_rows;
+    vga_console_info.u.text_mode_3.columns =
+                                        ia64_boot_param->console_info.num_cols;
+#endif
+
     init_console();
     set_printk_prefix("(XEN) ");